const popup = {
  namespaced: true,
  state() {
    return {
      //弹出框状态
      isPopup: false,
      //弹出框类型
      isPopupKind: null,
      //弹出框数据
      columns: ["杭州", "宁波", "温州", "绍兴", "湖州", "嘉兴", "金华", "衢州"],
    };
  },
  mutations: {
    //修改弹出框状态
    handleIspoup(state) {
      state.isPopup = !state.isPopup;
    },
    //鉴别弹出框类型
    handlePopupKind(state, value) {
      state.isPopupKind = value;
    },
    handleColumns(state, value) {
      state.columns = value;
    },
  },
};
export default popup;
